package name.jiaosha.air.install.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.ali8ba.Domain;
import com.ali8ba.common.JsonDateSerializer;

@Entity
@Table(name = "air_install")
public class Install extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id()
	@Column(name = "docid")
	private String docID;
	/**
	 * 销售单位
	 */
	@Column(name = "partnerid")
	private Integer partnerId;
	/**
	 * 业务单位
	 */
	@Column(name = "buyunit")
	private String buyUnit;
	/**
	 * 业务单位拼音
	 */
	@Column(name = "unitpinyin")
	private String unitPinyin;
	/**
	 * 用户姓名
	 */
	@Column(name = "buyer")
	private String buyer;
	
	@Column(name = "buyerpinyin")
	private String buyerPinyin;
	/**
	 * 联系电话
	 */
	@Column(name = "phone")
	private String phone;
	/**
	 * 手机
	 */
	@Column(name = "mobile")
	private String mobile;
	/**
	 * 地址
	 */
	@Column(name = "address")
	private String address;
	/**
	 * 批文号
	 */
	@Column(name = "batchnum")
	private String batchNum;
	/**
	 * 提单号
	 */
	@Column(name = "picknum")
	private String pickNum;
	/**
	 * 单据日期
	 */
	@Column(name = "invoicesdate")
	private Date invoicesDate;
	/**
	 * 购买日期
	 */
	@Column(name = "buydate")
	private Date buyDate;
	/**
	 * 送货日期
	 */
	@Column(name = "deliverdate")
	private Date deliverDate;
	/**
	 * 安装日期
	 */
	@Column(name = "fixdate")
	private Date fixDate;
	/**
	 * 备注
	 */
	@Column(name = "remarks")
	private String remarks;
	/**
	 * 录入人
	 */
	@Column(name = "createMan")
	private String createMan;
	/**
	 * 单据类型
	 */
	@Column(name = "invoicestype")
	private int invoicesType;
	/**
	 * 地区
	 */
	@Column(name = "districtid")
	private int districtId;
	/**
	 * 运输方式
	 */
	@Column(name = "transporttype")
	private String transportType;
	/**
	 * 版本
	 */
	@Column(name = "version")
	private int version;
	/**
	 * 状态
	 */
	@Column(name = "state")
	private int state;
	/**
	 * 创建时间
	 */
	@Column(name = "createtiem")
	private Date createTiem;
	/**
	 * 最近修改人
	 */
	@Column(name = "lastman")
	private String lastMan;
	/**
	 * 最后修改时间
	 */
	@Column(name = "lasttime")
	private Date lastTime;

	public Install() {

	}

	public String getDocID() {
		return docID;
	}

	public void setDocID(String docID) {
		this.docID = docID;
	}

	public String getBuyer() {
		return buyer;
	}

	public void setBuyer(String buyer) {
		this.buyer = buyer;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getBuyDate() {
		return buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getDeliverDate() {
		return deliverDate;
	}

	public void setDeliverDate(Date deliverDate) {
		this.deliverDate = deliverDate;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getFixDate() {
		return fixDate;
	}

	public void setFixDate(Date fixDate) {
		this.fixDate = fixDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreateMan() {
		return createMan;
	}

	public void setCreateMan(String createMan) {
		this.createMan = createMan;
	}

	public Integer getPartnerId() {
		return partnerId;
	}

	public void setPartnerId(Integer partnerId) {
		this.partnerId = partnerId;
	}

	public int getInvoicesType() {
		return invoicesType;
	}

	public void setInvoicesType(int invoicesType) {
		this.invoicesType = invoicesType;
	}

	public int getDistrictId() {
		return districtId;
	}

	public void setDistrictId(int districtId) {
		this.districtId = districtId;
	}

	public String getBatchNum() {
		return batchNum;
	}

	public void setBatchNum(String batchNum) {
		this.batchNum = batchNum;
	}

	public String getPickNum() {
		return pickNum;
	}

	public void setPickNum(String pickNum) {
		this.pickNum = pickNum;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getInvoicesDate() {
		return invoicesDate;
	}

	public void setInvoicesDate(Date invoicesDate) {
		this.invoicesDate = invoicesDate;
	}

	public String getBuyUnit() {
		return buyUnit;
	}

	public void setBuyUnit(String buyUnit) {
		this.buyUnit = buyUnit;
	}

	public String getUnitPinyin() {
		return unitPinyin;
	}

	public void setUnitPinyin(String unitPinyin) {
		this.unitPinyin = unitPinyin;
	}

	public String getTransportType() {
		return transportType;
	}

	public void setTransportType(String transportType) {
		this.transportType = transportType;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getCreateTiem() {
		return createTiem;
	}

	public void setCreateTiem(Date createTiem) {
		this.createTiem = createTiem;
	}

	public String getLastMan() {
		return lastMan;
	}

	public void setLastMan(String lastMan) {
		this.lastMan = lastMan;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getLastTime() {
		return lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public String getBuyerPinyin() {
		return buyerPinyin;
	}

	public void setBuyerPinyin(String buyerPinyin) {
		this.buyerPinyin = buyerPinyin;
	}
	
	

}
